﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace Nomad.WebSync.Pocket.Sync {
    /// <summary>
    /// Synchronization progress event arguments
    /// </summary>
    class ProgressEventArgs: EventArgs {
        /// <summary>
        /// Start progress value
        /// </summary>
        public int Minimum { get; set; }
        /// <summary>
        /// End progress value
        /// </summary>
        public int Maximum { get; set; }
        /// <summary>
        /// Current progress value
        /// </summary>
        public int Current { get; set; }

        /// <summary>
        /// Create a new instance of ProgressEventArgs class
        /// </summary>
        public ProgressEventArgs() {
            this.Minimum = 0;
            this.Maximum = 0;
            this.Current = 0;
        }
    }

    /// <summary>
    /// Delegate for the synchronization progress event 
    /// </summary>
    /// <param name="sender">Object of synchronization</param>
    /// <param name="e">Arguments for current progress</param>
    delegate void ProgressEventHandler(object sender, ProgressEventArgs e);
}
